package server;

import java.util.concurrent.*;

public class SimpleService {

    private SimpleConnector simpleConnector;

    private SimpleEngine simpleEngine;

    public SimpleConnector getSimpleConnector() {
        return simpleConnector;
    }

    public void setSimpleConnector(SimpleConnector simpleConnector) {
        this.simpleConnector = simpleConnector;
    }

    public SimpleEngine getSimpleEngine() {
        return simpleEngine;
    }

    public void setSimpleEngine(SimpleEngine simpleEngine) {
        this.simpleEngine = simpleEngine;
    }

    public void init() {

        this.simpleEngine.init();

        this.simpleConnector.setSimpleService(this);
        this.simpleConnector.init();
    }

    public void start() {
        this.simpleEngine.init();
        this.simpleConnector.start();
    }

}
